import { post, put, get } from '@/security/request'
import { Application_Form } from '@/utils/keyWord'

export function getPageApi(data: any): Promise<IPageResult<any>> {
    return get("/admin/anchor/page",  data);
}

export function getOneApi(data: any): Promise<IRespResult<any>> {
    return get("/admin/anchor/getOne",  data, Application_Form);
}

export function switchStatusApi(data: any): Promise<IRespResult<any>> {
    return put("/admin/anchor/switch/status",  data, Application_Form);
}

export function switchHideApi(data: any): Promise<IRespResult<any>> {
    return put("/admin/anchor/switch/hide",  data, Application_Form);
}

export function verificationPhoneApi(data: any): Promise<IRespResult<any>> {
    return post("/admin/anchor/verification/phone",  data, Application_Form);
}

export function addAnchorApi(data: any): Promise<IRespResult<any>> {
    return post("/admin/anchor/add",  data);
}
